<form class="layui-form" id="editform" style="padding: 20px;" action="">

    <input type="hidden" name="userId" th:value="${user.userId}">

    <div class="layui-form-item">
        <label class="layui-form-label">用户名 :</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required" placeholder="请输入"  class="layui-input layui-disabled" th:value="${user.username}" readonly>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">邮箱 :</label>
        <div class="layui-input-block">
            <input type="text" name="email" lay-verify="email" placeholder="请输入"  class="layui-input" th:value="${user.email}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">电话 :</label>
        <div class="layui-input-block">
            <input type="text" name="phone"  lay-verify="required|phone" placeholder="请输入"  class="layui-input" th:value="${user.phone}">
        </div>
    </div>

    <div class="layui-inline">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <input type="radio" name="sex"  value="1"  th:checked="${user.sex==1}" title="男">
            <input type="radio" name="sex"  value="2"  th:checked="${user.sex==2}" title="女">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">年龄 :</label>
        <div class="layui-input-block">
            <input type="text" name="age"  placeholder="请输入"  class="layui-input" th:value="${user.age}">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="editSubmit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>


